//
//  SoapHelper.m
//  Video_Signal
//
//  Created by Justsoso on 16/4/2.
//  Copyright © 2016年 Justsoso. All rights reserved.
//

#import "SoapHelper.h"

#import <TBXML.h>

#define kAppKey @"30532745451a46b2afb9361e440825d0"

@implementation SoapHelper


+ (NSString *)makeSoapInfo:(NSString *)location
{
    NSString *str = [NSString stringWithFormat:@"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
                     "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">"
                     "<soap:Body>"
                     "<GetNearCinemaInfoByLocation xmlns=\"http://www.36wu.com/\">"
                     "<location>%@</location>"
                     "<authkey>%@</authkey>"
                     "</GetNearCinemaInfoByLocation>"
                     "</soap:Body>"
                     "</soap:Envelope>",location,kAppKey];
    
    return str;
}

//<?xml version="1.0" encoding="utf-8"?>
//    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
//        <soap:Body>
//            <GetNearCinemaInfoByLocationResponse xmlns="http://www.36wu.com/">
//                <GetNearCinemaInfoByLocationResult>
//                    <status>int</status>
//                    <message>string</message>
//                    <data>
//                        <CinemaResult>
//                            <uid>string</uid>
//                            <name>string</name>
//                            <telephone>string</telephone>
//                            <location xsi:nil="true" />
//                            <address>string</address>
//                            <rating>float</rating>
//                            <review xsi:nil="true" />
//                            <movies xsi:nil="true" />
//                        </CinemaResult>
//                        <CinemaResult>
//                            <uid>string</uid>
//                            <name>string</name>
//                            <telephone>string</telephone>
//                            <location xsi:nil="true" />
//                            <address>string</address>
//                            <rating>float</rating>
//                            <review xsi:nil="true" />
//                            <movies xsi:nil="true" />
//                        </CinemaResult>
//                    </data>
//                </GetNearCinemaInfoByLocationResult>
//            </GetNearCinemaInfoByLocationResponse>
//        </soap:Body>
//    </soap:Envelope>


+ (NSDictionary *)parseSoapInfo:(NSData *)data
{
    return nil;
}
@end
